//
//  Test.swift
//  Example
//
//  Created by gupengling on 2021/6/4.
//

import Foundation
import UIKitExtentions
//如果你想要全局是只导入一次的话，用如下导入：
//@_exported import UIKitExtentions

class Test: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        extend.addLeftBtn("Hello") { [weak self] (btn) in
            print("Hello world\(String(describing: self?.view))")
        }

        let md5string = "123456".extend.toMd5Lower  //MD5加密返回：String
        let isPhone = "1788777".extend.isMobile // 手机号校验返回：Bool

        let centerX: CGFloat = view.extend.centerX //获取
        view.extend.setHeight(100)
        view.extend.setCenterX(300)//设置中心点

        let aView = UIView.init()
        aView.frame = CGRect.init(x: 30, y: 80, width: 120, height: 120)
        aView.extend.drawRounds(round: 6) //圆角是6

        //方式二就是四个角，分别给那个方向设置 UIRectCorner参数
         let corner = UIRectCorner.init(arrayLiteral: .topLeft, .topRight)
         aView.extend.drawRounds(corners: corner, round: 6)

        UELog.v("ssss")

    }
}
